package com.Data;


import android.os.AsyncTask;
import com.SoapClasses.SoapUser;


public class SocialInfo extends AsyncTask<Integer, String, SocialInfo> {

    private String aditionalData;

    private onGetSocialInfoCompleted callbackGetSocialInfo;

    private String Description;

    private int Followers;

    private int Following;

    private int IDUser;

    private String LastSeen;

    private int Pictures;

    private boolean showPrivate;

    public interface onGetSocialInfoCompleted {

        void Completed(SocialInfo result);
    }

    public String getAditionalData() {

        return aditionalData;
    }

    public onGetSocialInfoCompleted getCallbackGetSocialInfo() {

        return callbackGetSocialInfo;
    }

    public String getDescription() {

        return Description;
    }

    public int getFollowers() {

        return Followers;
    }

    public int getFollowing() {

        return Following;
    }

    public int getIDUser() {

        return IDUser;
    }

    public String getLastSeen() {

        return LastSeen;
    }

    public int getPictures() {

        return Pictures;
    }

    public boolean isShowPrivate() {

        return showPrivate;
    }

    public void setAditionalData(String aditionalData) {

        this.aditionalData = aditionalData;
    }

    public void setCallbackGetSocialInfo(onGetSocialInfoCompleted callbackGetSocialInfo) {

        this.callbackGetSocialInfo = callbackGetSocialInfo;
    }

    public void setDescription(String description) {

        Description = description;
    }

    public void setFollowers(int followers) {

        Followers = followers;
    }

    public void setFollowing(int following) {

        Following = following;
    }

    public void setIDUser(int iDUser) {

        IDUser = iDUser;
    }

    public void setLastSeen(String lastSeen) {

        LastSeen = lastSeen;
    }

    public void setPictures(int pictures) {

        Pictures = pictures;
    }

    public void setShowPrivate(boolean showPrivate) {

        this.showPrivate = showPrivate;
    }

    @Override
    protected SocialInfo doInBackground(Integer... params) {

        SoapUser sPI = new SoapUser();
        return sPI.getUserSocialInfo(this.IDUser);
    }

    @Override
    protected void onPostExecute(SocialInfo result) {

        if (callbackGetSocialInfo != null)
            callbackGetSocialInfo.Completed(result);
    }

}
